package com.ljj.service.impl;

import com.ljj.mapper.OrdersMapper;
import com.ljj.pojo.Orders;
import com.ljj.service.OrdersService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName OrdersServiceImpl
 * @Description TODO
 * @Author Administrator
 * @Date 2022/3/2 13:21
 * @Version 1.0
 */
@Transactional
@Service
@Slf4j
public class OrdersServiceImpl implements OrdersService {

    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public List<Orders> queryOrdersAll() {
        return ordersMapper.selectAll();
    }
}
